Skip to content

Conversation

@rhkrwngud445
Copy link
Contributor

작업 내용

response

확인 방법

[HomeScreen] prod url 기준 Home 화면만 해당

참고 사항

N/A

관련 이슈

@gemini-code-assist
Copy link

Summary of Changes

Hello @rhkrwngud445, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 Pull Request는 응답 데이터에서 특정 필드가 누락될 경우 발생할 수 있는 문제를 해결하기 위해 엔티티 필드에 기본값을 설정하고, Home 화면의 데이터 로딩 로직에서 에러 처리 메커니즘을 개선합니다. 또한, 애플리케이션의 버전 코드를 업데이트하여 전반적인 안정성과 견고성을 향상시키는 것을 목표로 합니다.

Highlights

  • 버전 코드 업데이트: 애플리케이션의 versionCode가 2에서 3으로 업데이트되었습니다.
  • 응답 엔티티 기본값 설정: MemberInfoEntitynotificationAgreedAt 필드와 FriendSummaryEntitycheckRate 필드에 기본값이 추가되어, 응답에서 해당 값이 누락될 경우 발생할 수 있는 잠재적인 문제를 방지합니다.
  • HomeViewModel 에러 처리 개선: HomeViewModel에서 memberRepository.getMyInfo()friendsFlow 데이터 스트림에 .catch 블록을 추가하여 에러 발생 시 _errorEvent로 전송하도록 처리함으로써 에러 핸들링 로직이 강화되었습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 일부 엔티티 필드에 기본값을 추가하여 API 응답 불일치 문제를 해결하고, HomeViewModel의 오류 처리를 개선했습니다. 변경 사항은 올바른 방향이지만, 코드의 명확성과 일관성을 위해 몇 가지 개선점을 제안합니다. MemberInfoEntity의 nullable 필드에 null을 기본값으로 사용하는 것과 HomeViewModel의 불필요한 import 제거에 대한 의견을 확인해주세요.

val nickname: String,
val imageUrl: String?,
val notificationAgreedAt: String?,
val notificationAgreedAt: String? = "", // TODO #Issue: 52 Default 값 추후 제거 필요

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

notificationAgreedAt 속성은 nullable(String?)이므로, null이 값의 부재를 나타내는 유효한 상태임을 시사합니다. 기본값으로 빈 문자열 ""을 사용하는 것은 혼란을 줄 수 있습니다. nullable 타입에는 null을 기본값으로 사용하는 것이 더 관용적입니다. 이렇게 하면 API 응답에서 필드가 누락되었을 때의 의도를 더 명확하게 코드에 나타낼 수 있습니다.

만약 이후의 코드에서 non-null 문자열이 필요하다면, null인 경우를 그쪽에서 처리하거나(예: ?: ""), null이 절대로 예상되는 상태가 아니라면 타입을 String으로 변경하는 것을 고려해 보세요.

Suggested change
val notificationAgreedAt: String? = "", // TODO #Issue: 52 Default 값 추후 제거 필요
val notificationAgreedAt: String? = null, // TODO #Issue: 52 Default 값 추후 제거 필요

@@ -1,5 +1,6 @@
package com.alarmy.near.presentation.feature.home

import android.util.Log

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

이 import는 파일 내에서 사용되지 않습니다. 불필요한 import는 제거하는 것이 좋습니다.

@rhkrwngud445 rhkrwngud445 merged commit 1f64d36 into dev Oct 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] prod, dev간 response 불일치

2 participants